import Vue from 'vue'
import VueRouter from 'vue-router'
import home from 'com/Home-page/index'
import entering from 'com/entering/index'
import overview from 'com/entering/overview'
import history from 'com/entering/history'
import leadership from 'com/entering/leadership'
import compentencies from 'com/entering/compentencies'
import honor from 'com/entering/honor'
import logistics from 'com/entering/logistics'
import party from 'com/entering/party'
import donor from 'com/entering/donor'
import officials from 'com/entering/officials'
import memorabilia from 'com/entering/memorabilia'
import news from 'com/news/index'
import business from 'com/news/business'
import contact from 'com/contact/index'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect:'/1'
  },
  {
    path: '/1',
    component: home
  },
  {
    path: '/2',
    component: entering,
    children: [
      {
        path: '2-1',
        component: overview
      },
      {
        path: '2-2',
        component: history
      },
      {
        path: '2-3',
        component: leadership
      },
      {
        path: '2-4',
        component: compentencies
      },
      {
        path: '2-5',
        component: honor
      },
      {
        path: '2-6',
        component: logistics
      },
      {
        path: '2-7',
        component: party
      },
      {
        path: '2-8',
        component: donor
      },
      {
        path: '2-9',
        component: officials
      },
      {
        path: '2-10',
        component: memorabilia
      }
    ]
  },
  {
    path: '/3',
    component: news,
    children: [
      {
        path: '3-1',
        component: business
      }
    ]
  },
  {
    path: '/8/8-1',
    component: contact
  }
]

const router = new VueRouter({
  routes
})

export default router
